# base image
FROM centos:7.8.2003

# MAINTAINER
LABEL mail=584103210@qq.com



# add epel and 163 yum
RUN mkdir /etc/yum.repos.d/backup && mv  /etc/yum.repos.d/*.repo /etc/yum.repos.d/backup


COPY ./CentOS-Base.repo /etc/yum.repos.d/
RUN yum update -y &&  yum install -y epel-release  wget gcc gcc-c++ glibc make autoconf openssl openssl-devel epel-release crontabs

# Necessary packages
#RUN yum install -y epel-release  wget gcc gcc-c++ glibc make autoconf openssl openssl-devel ntpdata crontabs

# change timzone to Asia/Shanghai
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime